﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="addTeacher.aspx.cs" Inherits="admin_addTeacher" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <link href="../../css/body.css" rel="stylesheet" type="text/css" />
    <link href="../../css/table.css" rel="stylesheet" type="text/css" />
    <style type="text/css">
        .main
        {
            text-align: left;
            width: 400px;
            margin-left: 50px;
            margin-top: 30px;
        }
    </style>
    <script language="javascript" type="text/javascript">
        function openWin(u, w, h) {
            var l = (screen.width - w) / 2;
            var t = (screen.height - h) / 2;
            var s = 'width=' + w + ', height=' + h + ', top=' + t + ', left=' + l;
            s += ', toolbar=no, scrollbars=no, menubar=no, location=no, resizable=no';
            open(u, 'oWin', s);
        } 
    </script>
</head>
<body>
    <form id="form1" runat="server">
    <div class="main">
        <table class="tab"  style="text-align: left">
            <tr>
                <td width="100">
                    教师编号：
                </td>
                <td width="250">
                    <asp:TextBox ID="tb_id" runat="server" ReadOnly=true></asp:TextBox><font color="red">*自动生成</font>
                     <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" 
                        ControlToValidate="tb_id" ErrorMessage="*">*</asp:RequiredFieldValidator>
                </td>
            </tr>
            <tr>
                <td>
                    姓名：
                </td>
                <td>
                    <asp:TextBox ID="tb_name" runat="server"></asp:TextBox>
                     <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" 
                        ControlToValidate="tb_name" ErrorMessage="*">*</asp:RequiredFieldValidator>
                </td>
            </tr>
            <tr>
                <td>
                   简介：
                </td>
                <td>
                    <asp:TextBox ID="tb_about" runat="server" Height="150px" Width="250px" TextMode="MultiLine"></asp:TextBox>
                     <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" 
                        ControlToValidate="tb_about" ErrorMessage="*">*</asp:RequiredFieldValidator>
                </td>
            </tr>
         
            <tr>
                <td rowspan="2">
                    个人照片：<br />
                    (高58,宽48)
                </td>
                <td>
                    <asp:TextBox ID="tb_picUrl" runat="server" Width="250px" ReadOnly="True"></asp:TextBox>
                    <asp:Image runat="server" id="img_pic" Height="50" ></asp:Image>
                     <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" 
                        ControlToValidate="tb_picUrl" ErrorMessage="*">*</asp:RequiredFieldValidator>
                </td>
            </tr>
            <tr>
                <td>
                    <asp:FileUpload ID="fud_img" runat="server" Width="190px" />
                    &nbsp;&nbsp;
                    <asp:Button ID="btn_upload" runat="server" Text="上传" OnClick="btn_upload_Click" Width="50px"
                        CausesValidation="False" />
                </td>
            </tr>
            <tr>
                <td colspan="2">
                    <asp:Button ID="btn_ok" runat="server" Text="确定" OnClick="btn_ok_Click" Width="50px" />
                    &nbsp;
                    <asp:Button ID="btn_res" runat="server" OnClick="btn_res_Click" Text="重置" Width="50px" />
                </td>
            </tr>
            <tr>
                <td colspan="2" style="text-align: left;">
                    说明：直接添加用户，其默认密码为：<font color="red">888888</font></td>
            </tr>
        </table>
    </div>
    </form>
</body>
</html>
